package com.turkcell.dv.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "P_USER_PRIVILEGE")
public class UserPrivilegeDOM implements java.io.Serializable {

	private static final long serialVersionUID = -1705648986691858405L;
	private Long id;
	private Long privilegeId;
	private Long userId;

	public UserPrivilegeDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "PRIVILEGE_ID", nullable = false)
	public Long getPrivilegeId() {
		return this.privilegeId;
	}

	public void setPrivilegeId(Long privilegeId) {
		this.privilegeId = privilegeId;
	}
	
	@Column(name = "USER_ID", nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "id=" + id + ", privilegeId=" + privilegeId + ", userId=" + userId;
	}

}